// 导入express模块
const express = require('express')
const bodyParser = require('body-parser')
// 创建应用
const app = express()
app.use(bodyParser())

app.post('/', (req, res) => {
    res.json({cookies: req.body})
})

app.listen(8899, () => {
    console.log('listen on 8899');
})